const tablelib = require('../../libs/table');

 // 定义数据格式
 const fields = [
    {title:'标题', name:'title', type: 'text'},
    {title:'图片', name:'src', type:'file'},
    {title:'链接', name:'href', type:'text'},
    {title:'序号', name:'serial', type:'number'}
]

module.exports = tablelib(fields, 'banner_table', 'banner');
